import request from './request'


export class useChatApi {

    async fullTextChat(data: string) {
        console.log("调用全文对话接口");
        const response: any = await request({
            method: 'post',
            url: '/chat/fullCall',
            data
        });
        return response;
    }

    async streamTextChat(data: String) {
        console.log("调用流式对话接口");
        const response: any = await request({
            method: 'post',
            url: '/chat/streamCall',
            data
        });
        return response;
    }
} 
